
var data = [
    {
        "id": 1,
        "mb-year": "1",
        "poverty-target": "电商扶贫",
        "poverty-status": "3456",
        "wcd": "70%",
        "return-poverty-gold": "7923",

    },
    {
        "id": 2,
        "mb-year": "1",
        "poverty-target": "电商扶贫",
        "poverty-status": "3456",
        "wcd": "70%",
        "return-poverty-gold": "7923",

    },
    {
        "id": 3,
        "mb-year": "1",
        "poverty-target": "电商扶贫",
        "poverty-status": "3456",
        "wcd": "70%",
        "return-poverty-gold": "7923",

    },{
        "id": 4,
        "mb-year": "1",
        "poverty-target": "电商扶贫",
        "poverty-status": "3456",
        "wcd": "70%",
        "return-poverty-gold": "7923",

    },
    {
        "id": 5,
        "mb-year": "1",
        "poverty-target": "电商扶贫",
        "poverty-status": "3456",
        "wcd": "70%",
        "return-poverty-gold": "7953",

    }

]
$(function () {
    $('#reportTable').bootstrapTable({
        // url:''
        // method: 'get',
        cache: false,
        striped: false,//是否显示行间隔色
        sortable:false,//是否启用排序
        height: 220,
        pagination: false,//是否显示分页（*）
        pageSize: 5,//每页的记录行数（*）
        pageNumber:1,//初始化加载第一页，默认第一页,并记录
        pageList: [10, 20, 50, 100, 200, 500],//可供选择的每页的行数（*）
        showColumns: false,
        showRefresh: false,
        showExport: false,
        exportTypes: ['csv','txt','xml'],
        search: false,
        clickToSelect: false,
        columns: [
            {
                field:"mb-year",
                title:"年份",
                align:"center",
                valign:"middle"
                ,sortable:"false"
            },
            {
                field:"poverty-target",
                title:"脱贫目标",
                align:"center",
                valign:"middle",
                sortable:"false"
            },
            {
                field:"poverty-status",
                title:"脱贫完成",
                align:"center",
                valign:"middle",
                sortable:"false"
            },
            {
                field:"wcd",
                title:"完成度",
                align:"center",
                valign:"middle",
                sortable:"false"
            },
            {
                field:"return-poverty-gold",
                title:"返贫目标",
                align:"center",
                valign:"middle",
                sortable:"false",
            }],
        data : data,
    });
});

